package com.xbjtech.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.xbjtech.model.User;

public interface UserMapper extends BaseMapper<User> {

	User selectUserByUsernameAndPassword(@Param("username") String username, @Param("password") String password);
	
	int insertUserIdAndRoleId(@Param("uid") Integer uid, @Param("rid") Integer rid);
	
	
	int deleteRolesByUid(Integer uid);
	
	List<Integer> selectRolesByUid(Integer uid);
	
	User selectUsersRoleAndResource(Integer uid);
}
